import { createApp } from 'vue'
import App from './App.vue'
import router from './router/router'
import store from './store/store'

import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// 引入 echarts
import * as echarts from 'echarts'

import ElementPlus from 'element-plus'
import 'element-plus/theme-chalk/index.css';
import axios from 'axios'

 
const app = createApp(App)
app.use(ElementPlus)
app.use(store)
app.use(router)
// 全局挂载 echarts
app.config.globalProperties.$echarts = echarts
app.config.globalProperties.$axios=axios;  //配置axios的全局引用
//注册所有icon
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.mount('#app')



